package com.example.userservice.service;

import com.example.userservice.mapper.UserMapper;
import com.example.userservice.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id){
//        int i = 1/0;
//        return userMapper.selectByPrimaryKey(id);
        return null;
    }

    public List<User> queryUserList() {
        List<User> userList = userMapper.queryUserList();
        return userList;
    }
}
